package com.test.test1;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.jws.WebParam;

@Controller
public class WebController {

    //@WebParam 解析URL传值或者POST传值 ok是KEY value中的KEy
    @RequestMapping("/hello/web")
    public String hello(ModelMap mp , @WebParam String ok){

        System.out.println(ok);
        mp.addAttribute("host" , "www.baidu.com") ;
        return "hello" ;
    }
}
